<%@ page import="login.User" %>
<%--
  Index Page
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    User user = (User) session.getAttribute("user");

    if(user != null && user.isLoggedIn())
        response.sendRedirect("home.jsp");
    else
        response.sendRedirect("login.jsp");
%>

<html>
  <head>
    <title>Title</title>
  </head>
  <body>

    <script type="text/javascript">

    </script>

  </body>
</html>